// ===========================商家列表页面api========================

export interface ShopType {
  shopId?: number
  shopName?: string
  shopPhone?: string
  state?: number
  createTime?: string
  updateTime?: string
  [key: string]: any
}

export interface ShopGetAllParam {
  page: number
  pageSize: number
  shopName?: string
  shopPhone?: string
  state?: number
}

export interface ShopSaveParam {
  shopName: string
  shopPhone: string
  password?: string
  [key: string]: any
}

export interface ShopUpdateParam {
  shopId: number
  shopName: string
  shopPhone: string
  state?: number
  [key: string]: any
}

export interface ShopStartParam {
  shopId: number
  state: number
  businessUserId?: number | string
}

export interface ShopGetByIdParam {
  shopId: number
}

export interface ShopExamineParam {
  shopId: number
  state: number // 审核状态 1-通过 2-拒绝
  reason?: string // 拒绝原因
}

// ============================入驻申请页面api=======================

// 入驻申请列表项类型
export interface ShopCheckType {
  checkId?: number
  shopId?: number
  shopName?: string
  shopPhone?: string
  shopAdress?: string
  authenType?: number // 1-个人 2-个体工商户 3-企业 4-其他组织
  chargePersonName?: string
  chargePersonPhone?: string
  createTime?: string
  servicePhone?: string
  checkState?: number // 0-待处理 1-已通过 2-已拒绝
  reason?: string
  name?: string
  cardType?: number
  cardTypeName?: string
  idCard?: string
  cardTime?: string
  cardPositive?: string
  cardSide?: string
  cardHand?: string
  effectiveDate?: string
  effectiveYear?: number
  subjectName?: string
  subjectCode?: string
  subjectAdress?: string
  adress?: string
  subjectStartTime?: string
  subjectEndTime?: string
  subjectLicense?: string[]
  [key: string]: any
  isCityStore?: number
  isOnlineStore?: number
  isInStore?: number
  cityStoreDistance?: number
  cityStoreIsserving?: number
}

// 入驻申请查询参数
export interface CheckGetAllParam {
  page: number
  pageSize: number
  shopName?: string
  shopPhone?: string
  dates?: string[]
  checkState?: number // 后端使用checkState字段
  authenType?: number // 店铺类型 1-个人 2-个体工商户 3-企业 4-其他组织
}

// 入驻申请详情查询参数
export interface CheckGetByIdParam {
  shopId: number
}

// 处理入驻申请参数
export interface CheckHandleParam {
  shopId: number
  checkHandle: number // 1-通过 2-拒绝
  reason?: string
}

// 删除入驻申请参数
export interface CheckDeleteParam {
  shopId: number
}
